﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebSite.Model;

namespace WebSite.Data.NH.Repositories.Mappings
{
    public class ContactMap : ClassMap<ContactInfo>
    {
        public ContactMap()
        {
            Table("ContactInfo");
            LazyLoad();
            Id(x => x.Id).GeneratedBy.Identity().Column("Id");
            Map(x => x.CompanyId).Column("CompanyId");
            Map(x => x.Address).Column("Address");
            Map(x => x.Phone).Column("Phone");
            Map(x => x.Fax).Column("Fax");
            Map(x => x.Email).Column("Email");
            Map(x => x.LinkMan).Column("LinkMan");
        }
    }
}
